﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniErp.Entity.DataStreams.DOs.AssetManagement
{
    /// <summary>
    /// 资产修改类型表实体
    /// </summary>
    /// 
    [Table("AssetModificationType")]
    public class AssetModificationType : BaseEntity
    {
        /// <summary>
        /// 资产修改类型Id
        /// </summary>
        [Key]
        [ConcurrencyCheck]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int AMTId { get; set; }

        /// <summary>
        /// 资产修改类型名
        /// </summary>
        [MaxLength(15, ErrorMessage = "资产修改类型名不能超过15个字符")]
        public string AMTName { get; set; }

        /// <summary>
        /// 资产修改类型备注
        /// </summary>
        public string Remarks { get; set; }
        #region 导航属性
        public virtual List<AssetModificationRecord> AssetModificationRecords { get; set; }
        #endregion
    }
}
